<%@ page pageEncoding="utf-8"%>
<%@page import="java.util.List"%>
<%@page import="org.personal.util.UserUtil"%>
<%@page import="org.personal.Constants"%>
<%@page import="org.personal.entity.User"%>
<%@page import="org.personal.entity.Page"%>
<div id="header" style="height:30px;" >
<%
	UserUtil userUtil=(UserUtil)request.getSession().getAttribute(Constants.USER_UTIL);
	Page currentPage1=(Page)request.getAttribute(Constants.PAGE);
	//是否是系统管理员
	if(userUtil.hasSystemAdmin(request))
	{
		out.print("<a href=\"admin/pages.jsp\"  target=\"_blank\">页面管理</a>&nbsp;&nbsp;");
		out.print("<a href=\"admin/layouts.jsp\"  target=\"_blank\" >布局管理</a>&nbsp;&nbsp;");
		out.print("<a href=\"admin/portlet.jsp\"  target=\"_blank\" >板块管理</a>&nbsp;&nbsp;");
	}
	//是否有本页面个性化编辑权限
	if(userUtil.hasPageEdit(request))
	{
		out.print("&nbsp;&nbsp;<a href=\"javascript:;\" onclick=\"savePageInfo(this)\" >保存</a>");
		out.print("&nbsp;&nbsp;<a href=\"user/listPortlet.jsp?pageId="+currentPage1.getId()+"\" target=\"_blank\" >页面设置</a>");
	}
	User currentUser=(User)request.getSession().getAttribute(Constants.USER);
	if(currentUser!=null)
	{
		out.println("&nbsp;&nbsp;欢迎您:"+currentUser.getName());
	}
%>
</div>

